package com.cake.entity.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.cake.entity.XxProductProductImage;

/**
 * 商品详情封装对象
 * @author Administrator
 *
 */
public class ProductPoJo implements Serializable{
	
	private static final long serialVersionUID = -71370739079464270L;
	/**
	 * 商品主键
	 */
	private Long productId;
	/**
	 * 商品名
	 */
	private String name;
	/**
	 * 商品英文名
	 */
	private String englishName;
	/**
	 * 商品介绍
	 */
	private String productDetailsIntroduction;
	/**
	 * 商品售价
	 */
	private BigDecimal price; 
	/**
	 * 商品编号
	 */
	private String sn;
	
	/**
	 * 商品成本价
	 */
	private BigDecimal cost;
	/**
	 * 商品食用说明
	 */
	private String foodStorage;
	/**
	 * 商品建议
	 */
	private String announcement;
	/**
	 * 是否为蛋糕
	 */
	private Integer isCake;
	/**
	 * 配送说明
	 */
	private String sendIntro;
	/**
	 * 配送时间说明
	 */
	private String sendTimeIntro;
	/**
	 * 分类名称
	 */
	private String categoryName;
	/**
	 * 分类id
	 */
	private Long productCategory;
	/**
	 * 单位名称
	 */
	private String productUnitName;
	
	private String thumbnailImage;
	
	/**
	 * 商品图片地址
	 */
	private List<XxProductProductImage> productImages = new ArrayList<XxProductProductImage>();

	/**
	 * 接收前台传来的base64位图片字符串
	 */
	private List<Base64Bean> base64ImageBeans = new ArrayList<Base64Bean>();
	
	private String thumbnailBase64Image;
	
	/**
	 * 积分
	 */
	private Long point;
	/**
	 * 是否上架
	 */
	private Boolean isMarketable;
	/**
	 * 是否上架前端数字标识
	 */
	private Integer isMarketableFlag;
	
	public Integer getIsMarketableFlag() {
		return isMarketableFlag;
	}
	public void setIsMarketableFlag(Integer isMarketableFlag) {
		this.isMarketableFlag = isMarketableFlag;
	}
	public Long getPoint() {
		return point;
	}
	public void setPoint(Long point) {
		this.point = point;
	}
	public Boolean getIsMarketable() {
		return isMarketable;
	}
	public void setIsMarketable(Boolean isMarketable) {
		this.isMarketable = isMarketable;
	}
	public List<Base64Bean> getBase64ImageBeans() {
		return base64ImageBeans;
	}
	public void setBase64ImageBeans(List<Base64Bean> base64ImageBeans) {
		this.base64ImageBeans = base64ImageBeans;
	}
	/**
	 * 商品规格id
	 */
	private Long specificationId;
	
	public Long getSpecificationId() {
		return specificationId;
	}
	public void setSpecificationId(Long specificationId) {
		this.specificationId = specificationId;
	}
	public String getSn() {
		return sn;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	
	public List<XxProductProductImage> getProductImages() {
		return productImages;
	}
	public void setProductImages(List<XxProductProductImage> productImages) {
		this.productImages = productImages;
	}
	/**
	 * 商品规格详情
	 */
	private List<SpecificationValuePojo> specificationValues = new ArrayList<SpecificationValuePojo>();
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getEnglishName() {
		return englishName;
	}
	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}
	
	public List<SpecificationValuePojo> getSpecificationValues() {
		return specificationValues;
	}
	public void setSpecificationValues(List<SpecificationValuePojo> specificationValues) {
		this.specificationValues = specificationValues;
	}
	public Long getProductId() {
		return productId;
	}
	public void setProductId(Long productId) {
		this.productId = productId;
	}
	public String getProductDetailsIntroduction() {
		return productDetailsIntroduction;
	}
	public void setProductDetailsIntroduction(String productDetailsIntroduction) {
		this.productDetailsIntroduction = productDetailsIntroduction;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}
	public String getFoodStorage() {
		return foodStorage;
	}
	public void setFoodStorage(String foodStorage) {
		this.foodStorage = foodStorage;
	}
	public String getAnnouncement() {
		return announcement;
	}
	public void setAnnouncement(String announcement) {
		this.announcement = announcement;
	}
	public Integer getIsCake() {
		return isCake;
	}
	public void setIsCake(Integer isCake) {
		this.isCake = isCake;
	}
	public String getSendIntro() {
		return sendIntro;
	}
	public void setSendIntro(String sendIntro) {
		this.sendIntro = sendIntro;
	}
	public String getSendTimeIntro() {
		return sendTimeIntro;
	}
	public void setSendTimeIntro(String sendTimeIntro) {
		this.sendTimeIntro = sendTimeIntro;
	}
	public String getCategoryName() {
		return categoryName;
	}
	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	public Long getProductCategory() {
		return productCategory;
	}
	public void setProductCategory(Long productCategory) {
		this.productCategory = productCategory;
	}
	public String getProductUnitName() {
		return productUnitName;
	}
	public void setProductUnitName(String productUnitName) {
		this.productUnitName = productUnitName;
	}
        /**
         * Getter method for property <tt>thumbnailBase64Image</tt>.
         * 
         * @return property value of thumbnailBase64Image
         */
    public String getThumbnailBase64Image() {
        return thumbnailBase64Image;
    }
        /**
         * Setter method for property <tt>thumbnailBase64Image</tt>.
         * 
         * @param thumbnailBase64Image value to be assigned to property thumbnailBase64Image
         */
    public void setThumbnailBase64Image(String thumbnailBase64Image) {
        this.thumbnailBase64Image = thumbnailBase64Image;
    }
            /**
             * Getter method for property <tt>thumbnailImage</tt>.
             * 
             * @return property value of thumbnailImage
             */
        public String getThumbnailImage() {
            return thumbnailImage;
        }
            /**
             * Setter method for property <tt>thumbnailImage</tt>.
             * 
             * @param thumbnailImage value to be assigned to property thumbnailImage
             */
        public void setThumbnailImage(String thumbnailImage) {
            this.thumbnailImage = thumbnailImage;
        }
}
